<script setup>
import {ref} from "vue";
import axios from "@/axios";

const batch = ref('11月')
const start = ref(1)
const end = ref(30)
const path = ref('/hddisk/data_backup/网管/11月/网管11{}.csv')
function  click(){
  const formData = new FormData();
  formData.append('batch',batch.value)
  formData.append('start',start.value)
  formData.append('end',end.value)
  formData.append('path',path.value)
  axios.post("/anh/analyse/network",formData).catch(e => {
    console.log(e)
  })
}
</script>

<template>
  <el-row justify="center">
    输入批次
    <el-input v-model="batch" style="width: 240px" placeholder="输入批次" />
  </el-row>
  <el-row justify="center">
    输入开始日期
    <el-input v-model="start" style="width: 240px" placeholder="输入开始日期" />
  </el-row>
  <el-row justify="center">
    输入结束日期
    <el-input v-model="end" style="width: 240px" placeholder="输入结束日期" />
  </el-row>
  <el-row justify="center">
    输入路径
    <el-input v-model="path" style="width: 400px" placeholder="/hddisk/data_backup/网管/网管11月/网管11{}.csv" />
  </el-row>
<el-button @click="click" type="primary">
  处理网管文件
</el-button>
</template>

<style scoped>

</style>